package com.sanctuary.models;

import java.lang.reflect.Field;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import com.sanctuary.interfaces.Model;

public class SolrDocument implements Model {

	private String name;
	private String value;

	public SolrDocument() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getAliasName() {
		// TODO Auto-generated method stub
		return "solr-document";
	}

	public String toString() {
		return (new ReflectionToStringBuilder(this) {
			protected boolean accept(Field f) {
				return super.accept(f);
			}
		}).toString();
	}

}
